home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0399 / 335 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  2.6 KB

  1. Date: Fri, 25 Jun 93 17:23:24 -0400
  2. From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>
  3. To: steve@earth.ox.ac.uk
  4. In-Reply-To: Stephen Usher's message of Fri, 25 Jun 1993 08:14:08 +0100 (BST) <26701.9306250714@earth.ox.ac.uk>
  5. Subject: Bugs in the mntlib32 Bugs file.
  6.  
  7. >Here's some comments on the mntlib32 Bugs file. I've been meaning to send a
  8. >message such as this for a long time, well I've finally got around to it!
  9. >
  10. >>utmp.c: ++boender
  11. >>  The utmp structure as defined differs from the System V structure.
  12. >>  Now, I don't know what BSD does, but I'll look it up.
  13. >
  14. >This IS the BSD structure, it's source code compatable. The wtmp file is
  15. >able to be correctly interpreted by the Sun last(1) command.
  16.  
  17. The "bug" here is that the utmp structure doesn't contain some fields
  18. that System V does, *because* it is the exact BSD utmp struct.  Hildo
  19. Biersma wanted to implement some System V routines for compatibility
  20. and discovered that an implementation of those functions would require
  21. changes to the utmp structure.
  22.  
  23. >>  Do you know what POSIX says about the utmp structure?
  24. >
  25. >I doubt it says much, if anything about it.
  26.  
  27. The question is more accurately stated as "Does POSIX require any
  28. functions which cannot be implemented with the current utmp
  29. structure?"  I haven't looked into this yet, as I only very recently
  30. got my O'Reilly & Assoc. POSIX book...(Anyone have a copy of the
  31. actual IEEE POSIX spec they want to donate to a worthy cause? :-)
  32.  
  33. >>  Also, the System V getutent, getutid, etc. calls are missing from
  34. >>  the mintlibs, but they are so dependent on fields in the utmp
  35. >>  structure that are missing in the mintlibs that they cannot be
  36. >>  written without changing the utmp structure.
  37. >
  38. >Well... probably this is because BSD doesn't need all this extra info.
  39.  
  40. ...but an implementation of these functions for compatibility would
  41. need the extra info (I'm taking Hildo's word for it here, I don't even
  42. know what those functions do.)  I'd like to eventually see the MiNT
  43. library be able to compile code written for BSD, System V, or POSIX
  44. without much need for atari-specific kludges.  So any necessary
  45. changes in the utmp structure probably will be put into place at some
  46. point, but this will probably require some coordination with you (and
  47. anyone else who has written code that accesses the utmp/wtmp files.)
  48.  
  49. >This is what SunOS 4.1 says about ttyslot(3V)...
  50. >
  51. >TTYSLOT(3V)            C LIBRARY FUNCTIONS            TTYSLOT(3V)
  52. >
  53. >NAME
  54. >     ttyslot - find the slot in the utmp file of the current pro-
  55. >     cess
  56.  
  57. If you wanted to implement ttyslot() for the libs, it would be
  58. appreciated.
  59.  
  60. Cheers,
  61. entropy
  62.